var readline=require('readline');
rl=readline.createInterface(
    process.stdin,
    process.stdout
)
rl.setPrompt('No>>>>');
rl.prompt();
rl.on('line',(line)=>{
    switch (line.trim()){
        case 'name':
            console.log('name');
            break;
        case 'code':
            console.log('code');
            break;
        default:
            console.log('?????');
            break;

    }
    rl.prompt()
}).on('close',()=>{
    console.log('it works');
    process.exit(0);
})

